<style>
    .layui-form-label {
        width: 70px;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main" id="app">

            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <form id="app-form" class="layui-form layuimini-form">
                        <input type="hidden" name="field" value="switch">

                        <div class="layui-row">
                            <div class="layui-col-md2">
                               <div class="layui-form-item">
                                   <label class="layui-form-label">用户中心</label>
                                   <div class="layui-input-block">
                                       <input type="hidden" name="usercenter" value="0">

                                       <input type="checkbox" name="usercenter" value="1" {if sysconfig('switch','usercenter')}checked{/if}  lay-skin="switch" lay-text="ON|OFF">
                                   </div>
                                </div>
                            </div>

                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">注册功能</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="register" value="0">
                                        <input type="checkbox" name="register" value="1" {if sysconfig('switch.register')}checked{/if} lay-skin="switch" lay-text="ON|OFF">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md10">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">关闭后提示内容</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="register_close_msg" value="{:sysconfig('switch.register_close_msg')}"
                                                autocomplete="off"
                                               class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">评论功能</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="comment" value="0">
                                        <input type="checkbox" name="comment" value="1" {if sysconfig('switch','comment')}checked=""{/if}  lay-skin="switch" lay-text="ON|OFF">
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">友链在线申请</label>
                            <div class="layui-input-block">
                                <input type="hidden" name="friendly_link_apply" value="0">
                                <input type="checkbox" name="friendly_link_apply" value="1" {if sysconfig('switch','friendly_link_apply')}checked=""{/if}  lay-skin="switch" lay-text="ON|OFF">
                            </div>
                        </div>

                        <div class="hr-line"></div>
                        <div class="submit-info text-center">
                                <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                                <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                        </div>

                    </form>
                </div>
            </div>


    </div>
</div>